package com.dongdongshop.mapper;

import cn.hutool.core.date.DateTime;
import com.dongdongshop.pojo.TbOrder;
import com.dongdongshop.pojo.TbOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbOrderMapper {
    int countByExample(TbOrderExample example);

    int deleteByExample(TbOrderExample example);

    int deleteByPrimaryKey(Long orderId);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);

    List<TbOrder> selectByExample(TbOrderExample example);

    TbOrder selectByPrimaryKey(Long orderId);

    int updateByExampleSelective(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByExample(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);

    //查询付款成功的
    List<TbOrder> getallSend(@Param("status") String s);


    //查询日期范围
    List<TbOrder> getstaut(@Param("stauts") String stauts, @Param("date1") DateTime parse1, @Param("date2") DateTime parse2);


    //查询日期2
    List<TbOrder> getDate(@Param("date1") DateTime parse1, @Param("date2") DateTime parse2, @Param("stauts") String stauts);


    //根据交易订单号查询
    List<TbOrder> byorder(@Param("out_trade_no") String out_trade_no);
}


